package com.gitee.somenvm.ninerpgitem.core.ui

import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
import taboolib.module.ui.buildMenu
import taboolib.module.ui.type.Chest

abstract class UI(val viewer: Player) {
    val inv: Inventory = buildMenu<Chest> {
        rows(1)
    }

    /**
     * 打开菜单
     */
    abstract fun open()

    /**
     * 更新菜单
     */
    abstract fun update(inv: Inventory)

}